package map.android.baidu.carpool.data.impl;

import android.content.Context;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.data.CarpoolBaseData;
import map.android.baidu.carpool.response.CreateCommentResponse;
import map.android.baidu.carpool.setting.UserInfoSetting;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangtongyu on 15/3/25.
 * user模块评价车主模块请求request
 */
public class CreateCommentData extends CarpoolBaseData<CreateCommentResponse>{

    public String driverId;
    public String orderId;
    public String score;
    public String content;
    public String bduss;

    public CreateCommentData(Context context) {
        super(context);
    }

    public void setBduss(String bduss) {
        this.bduss = bduss;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setDriverId(String driverId) {
        this.driverId = driverId;
    }

    public void setScore(String score) {
        this.score = score;
    }
    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_USER_CREATE_COMMENT);
    }

    @Override
    protected Map<String, String> getParams() {
        Map<String , String> params = new HashMap<String, String>();
        params.put("driverId" , driverId);
        params.put("orderId" , orderId);
        params.put("score" , score);
        params.put("content" , content);
        params.put("bduss" , UserInfoSetting.getBduss());

        return params;
    }
}

